/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jpa.entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author alphyon
 */
@Entity
@Table(name = "caracteristicas")
@NamedQueries({@NamedQuery(name = "Caracteristicas.findAll", query = "SELECT c FROM Caracteristicas c"), @NamedQuery(name = "Caracteristicas.findById", query = "SELECT c FROM Caracteristicas c WHERE c.id = :id"), @NamedQuery(name = "Caracteristicas.findByMarca", query = "SELECT c FROM Caracteristicas c WHERE c.marca = :marca"), @NamedQuery(name = "Caracteristicas.findByModelo", query = "SELECT c FROM Caracteristicas c WHERE c.modelo = :modelo"), @NamedQuery(name = "Caracteristicas.findBySerie", query = "SELECT c FROM Caracteristicas c WHERE c.serie = :serie"), @NamedQuery(name = "Caracteristicas.findByIdTipo", query = "SELECT c FROM Caracteristicas c WHERE c.idTipo = :idTipo"), @NamedQuery(name = "Caracteristicas.findByCaracteristicas", query = "SELECT c FROM Caracteristicas c WHERE c.caracteristicas = :caracteristicas"), @NamedQuery(name = "Caracteristicas.findByIdEquipo", query = "SELECT c FROM Caracteristicas c WHERE c.idEquipo = :idEquipo")})
public class Caracteristicas implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "marca")
    private String marca;
    @Column(name = "modelo")
    private String modelo;
    @Column(name = "serie")
    private String serie;
    @Basic(optional = false)
    @Column(name = "id_tipo")
    private String idTipo;
    @Column(name = "caracteristicas")
    private String caracteristicas;
    @Basic(optional = false)
    @Column(name = "id_equipo")
    private String idEquipo;

    public Caracteristicas() {
    }

    public Caracteristicas(Integer id) {
        this.id = id;
    }

    public Caracteristicas(Integer id, String marca, String idTipo, String idEquipo) {
        this.id = id;
        this.marca = marca;
        this.idTipo = idTipo;
        this.idEquipo = idEquipo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMarca() {
        return marca;
    }

    public void setMarca(String marca) {
        this.marca = marca;
    }

    public String getModelo() {
        return modelo;
    }

    public void setModelo(String modelo) {
        this.modelo = modelo;
    }

    public String getSerie() {
        return serie;
    }

    public void setSerie(String serie) {
        this.serie = serie;
    }

    public String getIdTipo() {
        return idTipo;
    }

    public void setIdTipo(String idTipo) {
        this.idTipo = idTipo;
    }

    public String getCaracteristicas() {
        return caracteristicas;
    }

    public void setCaracteristicas(String caracteristicas) {
        this.caracteristicas = caracteristicas;
    }

    public String getIdEquipo() {
        return idEquipo;
    }

    public void setIdEquipo(String idEquipo) {
        this.idEquipo = idEquipo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Caracteristicas)) {
            return false;
        }
        Caracteristicas other = (Caracteristicas) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "jpa.entidades.Caracteristicas[id=" + id + "]";
    }

}
